package org.yray.io.controller;

import org.springframework.boot.web.servlet.server.Session;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.Cookie;
import java.util.HashMap;
import java.util.Map;

@RestController("header")
@RequestMapping("/header")
public class TestHeaderController {

    @GetMapping("/header1")
    public String testGet(@RequestHeader Map map)
    {
        return "testGet";
    }

    @GetMapping("/cookei")
    public String testPost(@CookieValue("_c") String c)
    {
        return "testPost";
    }

    @GetMapping("/cookei2")
    public String cookei2(@CookieValue Cookie cookie)
    {
        return "testPost";
    }
}
